package cn.com.surker.order.dao;

import cn.com.surker.order.entity.WechatChooseContract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 合同选择记录 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2022-04-14
 */
public interface WechatChooseContractDao extends BaseMapper<WechatChooseContract> {

    /**
     * 查询最后一次选择合同信息
     * @param searchVal openid或手机号
     * @return
     */
    WechatChooseContract findLastChoose(String searchVal);

    List<WechatChooseContract> findUnContract();
}
